#ifndef CONFIGINIUTIL_H
#define CONFIGINIUTIL_H

#include <QVariant>

class ConfigIniUtil
{
public:
    // 读取配置
    static QString readConfigValue(const QString &iniPath, const QString &key);
    static QVariantMap readConfigValues(const QString &iniPath);

    // 写入配置
    static bool writeConfigValue(const QString &iniPath, const QString &key, const QVariant &value);
    static bool writeConfigValues(const QString &iniPath, const QString &group, const QVariantMap &values);

    // 删除配置
    static bool deleteConfig(const QString &iniPath, const QString &key);
};

#endif // CONFIGINIUTIL_H
